Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 1 | git-fetch-pack(1) |
| 2 | ================= |
| 3 | |
| 4 | NAME |
| 5 | ---- |
Junio C Hamano | 0107892 | 2006-03-10 00:31:47 | [diff] [blame] | 6 | git-fetch-pack - Receive missing objects from another repository |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 7 | |
| 8 | |
| 9 | SYNOPSIS |
| 10 | -------- |
Junio C Hamano | bb34317 | 2008-03-09 10:39:09 | [diff] [blame] | 11 | 'git-fetch-pack' [--all] [--quiet|-q] [--keep|-k] [--thin] [--include-tag] [--upload-pack=<git-upload-pack>] [--depth=<n>] [--no-progress] [-v] [<host>:]<directory> [<refs>...] |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 12 | |
| 13 | DESCRIPTION |
| 14 | ----------- |
Junio C Hamano | 35738e8 | 2008-01-07 07:55:46 | [diff] [blame] | 15 | Usually you would want to use linkgit:git-fetch[1] which is a |
Junio C Hamano | e58607f | 2007-01-17 23:27:45 | [diff] [blame] | 16 | higher level wrapper of this command instead. |
| 17 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 18 | Invokes 'git-upload-pack' on a potentially remote repository, |
| 19 | and asks it to send objects missing from this repository, to |
| 20 | update the named heads. The list of commits available locally |
| 21 | is found out by scanning local $GIT_DIR/refs/ and sent to |
| 22 | 'git-upload-pack' running on the other end. |
| 23 | |
| 24 | This command degenerates to download everything to complete the |
| 25 | asked refs from the remote side when the local side does not |
| 26 | have a common ancestor commit. |
| 27 | |
| 28 | |
| 29 | OPTIONS |
| 30 | ------- |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 31 | --all:: |
Junio C Hamano | 4ad294b | 2007-01-20 02:22:50 | [diff] [blame] | 32 | Fetch all remote refs. |
| 33 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 34 | -q:: |
| 35 | --quiet:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 36 | Pass '-q' flag to 'git-unpack-objects'; this makes the |
| 37 | cloning process less verbose. |
| 38 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 39 | -k:: |
| 40 | --keep:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 41 | Do not invoke 'git-unpack-objects' on received data, but |
| 42 | create a single packfile out of it instead, and store it |
Junio C Hamano | 0d3c815 | 2006-11-08 01:33:41 | [diff] [blame] | 43 | in the object database. If provided twice then the pack is |
| 44 | locked against repacking. |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 45 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 46 | --thin:: |
Junio C Hamano | 4ad294b | 2007-01-20 02:22:50 | [diff] [blame] | 47 | Spend extra cycles to minimize the number of objects to be sent. |
| 48 | Use it on slower connection. |
| 49 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 50 | --include-tag:: |
Junio C Hamano | bb34317 | 2008-03-09 10:39:09 | [diff] [blame] | 51 | If the remote side supports it, annotated tags objects will |
| 52 | be downloaded on the same connection as the other objects if |
| 53 | the object the tag references is downloaded. The caller must |
| 54 | otherwise determine the tags this option made available. |
| 55 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 56 | --upload-pack=<git-upload-pack>:: |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 57 | Use this to specify the path to 'git-upload-pack' on the |
| 58 | remote side, if is not found on your $PATH. |
| 59 | Installations of sshd ignores the user's environment |
| 60 | setup scripts for login shells (e.g. .bash_profile) and |
| 61 | your privately installed git may not be found on the system |
| 62 | default $PATH. Another workaround suggested is to set |
| 63 | up your $PATH in ".bashrc", but this flag is for people |
| 64 | who do not want to pay the overhead for non-interactive |
| 65 | shells by having a lean .bashrc file (they set most of |
| 66 | the things up in .bash_profile). |
| 67 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 68 | --exec=<git-upload-pack>:: |
Junio C Hamano | fa0d4cf | 2007-01-25 02:23:58 | [diff] [blame] | 69 | Same as \--upload-pack=<git-upload-pack>. |
| 70 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 71 | --depth=<n>:: |
Junio C Hamano | 4ad294b | 2007-01-20 02:22:50 | [diff] [blame] | 72 | Limit fetching to ancestor-chains not longer than n. |
| 73 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 74 | --no-progress:: |
Junio C Hamano | aa83a7d | 2007-03-05 02:37:29 | [diff] [blame] | 75 | Do not show the progress. |
| 76 | |
Junio C Hamano | eb41599 | 2008-06-08 22:49:47 | [diff] [blame] | 77 | -v:: |
Junio C Hamano | 4ad294b | 2007-01-20 02:22:50 | [diff] [blame] | 78 | Run verbosely. |
| 79 | |
Junio C Hamano | 1a4e841 | 2005-12-27 08:17:23 | [diff] [blame] | 80 | <host>:: |
| 81 | A remote host that houses the repository. When this |
| 82 | part is specified, 'git-upload-pack' is invoked via |
| 83 | ssh. |
| 84 | |
| 85 | <directory>:: |
| 86 | The repository to sync from. |
| 87 | |
| 88 | <refs>...:: |
| 89 | The remote heads to update from. This is relative to |
| 90 | $GIT_DIR (e.g. "HEAD", "refs/heads/master"). When |
| 91 | unspecified, update from all heads the remote side has. |
| 92 | |
| 93 | |
| 94 | Author |
| 95 | ------ |
| 96 | Written by Linus Torvalds <torvalds@osdl.org> |
| 97 | |
| 98 | Documentation |
| 99 | -------------- |
| 100 | Documentation by Junio C Hamano. |
| 101 | |
| 102 | GIT |
| 103 | --- |
Junio C Hamano | f7c042d | 2008-06-06 22:50:53 | [diff] [blame] | 104 | Part of the linkgit:git[1] suite |